//package com.lb.bs.client.zookeeper;
//
//import org.apache.curator.utils.DefaultZookeeperFactory;
//import org.apache.curator.utils.ZookeeperFactory;
//import org.apache.zookeeper.Watcher;
//import org.apache.zookeeper.ZooKeeper;
//import org.apache.zookeeper.client.ZKClientConfig;
//
///**
// * program: fianl
// * author: bsworld.xie
// * create: 2020-03-05 21:13
// * description:
// */
//public class SalZookeeperFactory implements ZookeeperFactory {
//    @Override
//    public ZooKeeper newZooKeeper(String connectString, int sessionTimeout, Watcher watcher, boolean canBeReadOnly) throws Exception
//    {
//        ZKClientConfig clientConfig = new ZKClientConfig();
//        clientConfig.setProperty(ZKClientConfig.ENABLE_CLIENT_SASL_KEY,"false");
//
//        return new ZooKeeper(connectString, sessionTimeout, watcher, canBeReadOnly);
//    }
//
//}
